<tr class='prop'>
  <td valign='top' class='name'><label for='title'>Title:</label></td>
  <td valign="top" class="value ${hasErrors(bean:person,field:'title','errors')}">
    <g:select optionKey="id" from="${Title.list()}" name="person.title.id" id="personTitle" value="${person?.title?.id}" noSelection="${['null':'Select Title...']}" ></g:select>
  </td>
</tr>
<tr class='prop'>
  <td valign='top' class='name'><label for='firstName'>First Name:</label></td>
  <td valign='top' class='value ${hasErrors(bean:person,field:'firstName','errors')}'>
    <input type="text" id='firstName' name='person.firstName' value="${person?.firstName?.encodeAsHTML()}"/>
  </td>
</tr>
<tr class='prop'>
  <td valign='top' class='name'><label for='lastName'>Last Name:</label></td>
  <td valign='top' class='value ${hasErrors(bean:person,field:'lastName','errors')}'>
    <input type="text" id='lastName' name='person.lastName' value="${person?.lastName?.encodeAsHTML()}"/>
  </td>
</tr>
<g:if test="${!isCompany}">
  <tr class='prop'>
    <td valign='top' class='name'><label for='phone'>Phone:</label></td>
    <td valign='top' class='value ${hasErrors(bean:person,field:'phone','errors')}'>
      <input type="text" name='person.phone' value="${person?.phone?.encodeAsHTML()}"/>
    </td>
  </tr>
</g:if>
<tr class='prop'>
  <td valign='top' class='name'><label for='email'>Email:</label></td>
  <td valign='top' class='value ${hasErrors(bean:person,field:'email','errors')}'>
    <input type="text" name='person.email' value="${person?.email?.encodeAsHTML()}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="notes">Notes:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:person,field:'notes','errors')}">
    <textarea rows="3" cols="25" name="person.notes">${fieldValue(bean:person, field:'notes')}</textarea>
  </td>
</tr>
